RTBlueToothPI
Introduction蓝牙连接的接口 Bluetooth connection interface MethodsconnectNoSCanByUUID:-(BOOL)connectNoSCanByUUID:(NSString *) uuid; ParametersReturn Value是否启动连接。 Whether to start the connection 连接成功是通过发送消息:PrinterConnectedNotification来得知 Connection is successful by sending the message: PrinterConnectedNotification Discussion不用扫描,通过uuid直接连接蓝牙 Do not scan, connect directly to the Bluetooth through uuid getBleDevicelist-(NSArray *) getBleDevicelist; Return Value蓝牙列表的数组 An array of Bluetooth lists Discussion获取蓝牙列表 Get Bluetooth list startScan:isclear:ParametersReturn Value是否成功启用扫描 Whether to enable scanning successfully Discussion开始扫描蓝牙设备 Start scanning Bluetooth devices stopScan-(void) stopScan; Discussion停止扫描 Stop scanning PropertiesBleKind@property (nonatomic) BlueToothKind BleKind; Discussion蓝牙连接类型 Bluetooth connection type MTULength@property (nonatomic) NSInteger MTULength; Discussion蓝牙传输最大尺寸 Bluetooth transmission maximum size SendDelayMS@property (nonatomic) NSInteger SendDelayMS; Discussion分包发间隔秒数(单位:毫秒) Send data interval seconds (unit: milliseconds) |